<?php

use yii\helpers\Url;
?>
<?php if ($this->context->headerShow): ?>
    <?php if (Yii::$app->requestedRoute === "" || Yii::$app->requestedRoute === "site/index" || Yii::$app->requestedRoute === "profile/info"): ?>
        <div class="header">
            <div class="return-icon"></div>
            <span><?php echo $this->context->headerTitle; ?></span>
            <div class="nav-msg" url="index">
                <a href="javascript:;">
                <span>88</span>
                <i></i>
                <a>
            </div>
        </div>
    <?php  elseif(Yii::$app->requestedRoute === "task/work") :?>
        <div class="header">
            <div class="return-icon"></div>
            <span>任务列表</span>
            <div class="my-task">
                <a href="<?php echo Url::toRoute(["task/mynowork"]);?>">
                <i></i>
                <span>我的任务</span>
                </a>
            </div>
        </div>
     <?php  elseif(Yii::$app->requestedRoute === "task/taskdetail") :?>
        <div class="header">
            <div class="return-icon"></div>
            <span>任务详细</span>
            <small class="give-up">隐藏任务</small>
        </div>
    <?php else: ?>
        <div class="header">
            <?php if ($this->context->headerBack): ?>
                <i class="return-icon" url=""></i>
            <?php endif; ?>
            <span><?php echo $this->context->headerTitle; ?></span>
            <?php if ($this->context->headerReflash): ?>
                <a class="mui-icon mui-icon-refreshempty mui-pull-right"></a>
            <?php elseif ($this->context->headerRight): ?>
                <a style="font-size: 14px;margin-top: 10px;" class="mui-icon mui-pull-right" href="<?php echo $this->context->headerRight["url"]; ?>"><?php echo $this->context->headerRight["title"]; ?></a>
            <?php endif; ?>
        </div>
    <?php endif; ?>
<?php endif; ?>

